/* 整体容器样式 */
.add-meeting {
    /* background-color: #5b8cd4; */
    min-height: 100vh;
}

/* ====== 头部导航栏样式 ====== */
.page-header {
    background-color: #c62828;
    padding: 15px 0;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 头部内容布局 */
.header-content {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* 返回按钮样式 */
.back-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

/* 页面标题样式 */
.page-title {
    font-size: 18px;
    margin: 0;
    font-weight: normal;
}

/* 头部时间显示 */
.header-time {
    font-size: 14px;
}

/* ====== 主容器样式 ====== */
.main-container {
    /* background-color: #c62828; */
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 100px 10px; /* 顶部padding为固定头部预留空间 */
}

/* ====== 表单容器样式 ====== */
.form-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 4px;
}

/* 表单项通用样式 */
.form-item {
    margin-bottom: 10px;
}

/* 表单标签样式 */
.form-item label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

/* 输入框通用样式 */
.form-item input,
.form-item textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
}

/* ====== 会议简介字数统计 ====== */
.word-count {
    text-align: right;
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

/* ====== 主办方和会议时间行样式 ====== */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.form-row .form-item {
    margin-bottom: 0;
    flex: 1;
}

/* ====== 日期选择器组样式 ====== */
.date-picker-group {
    flex: 2;
}

.date-range-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-range-wrapper .date-picker {
    width: 45%;
}

.separator {
    color: #606266;
    margin: 0 4px;
}

/* ====== 地点和附件上传行样式 ====== */
.location-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* 地点输入框容器 */
.location-input-wrapper {
    position: relative;
    width: 100%;
}

/* 地点搜索建议列表 */
.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

/* 搜索建议项样式 */
.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.suggestion-item:hover {
    background-color: #f5f7fa;
}

.suggestion-item .name {
    font-size: 14px;
    color: #303133;
    margin-bottom: 4px;
}

.suggestion-item .address {
    font-size: 12px;
    color: #909399;
}

/* ====== 文件上传区域样式 ====== */
.upload-btn-wrapper {
    margin-top: 30px;
    margin-left: 20px;
}

.upload-btn-wrapper .el-upload__tip {
    color: #909399;
    font-size: 12px;
    margin-top: 4px;
    width: 120px;
}

/* ====== 文件列表样式 ====== */
.file-list-wrapper {
    margin-top: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: #f5f7fa;
    border-radius: 4px;
    transition: all 0.3s;
}

.file-item:hover {
    background-color: #ebeef5;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.file-name {
    color: #409EFF;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.file-name:hover {
    color: #66b1ff;
    text-decoration: underline;
}

/* ====== 参会人邀请区域样式 ====== */
.invite-section {
    /* border: 1px solid #dcdfe6; */
    /* padding: 15px; */
    border-radius: 4px;
}

.search-input {
    margin-bottom: 15px;
}

/* 筛选条件区域 */
.filter-section {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-item {
    flex: 1;
}

/* 参会人表格 */
.participants-table {
    margin-top: 15px;
}

/* ====== 已选参会人列表样式 ====== */
.selected-participants {
    border: 1px solid #dcdfe6;
    border-radius: 4px;
}

.selected-participants .header {
    display: grid;
    grid-template-columns: 60px 1fr 1fr 1fr 1fr 80px;
    padding: 10px;
    background-color: #f5f7fa;
    font-weight: bold;
}

.participant-item {
    display: grid;
    grid-template-columns: 60px 1fr 1fr 1fr 1fr 80px;
    padding: 10px;
    border-top: 1px solid #dcdfe6;
}

/* ====== 底部按钮区域 ====== */
.form-actions {
    max-width: 1200px;
    margin: 20px auto;
    text-align: center;
}

.form-actions .el-button--danger {
    min-width: 120px;
}

.form-row .form-item:last-child {
    margin-right: 0;
}

.location-row .form-item {
    margin-bottom: 0;
}

.location-row .upload-btn {
    margin-top: 32px; /* 调整按钮垂直对齐，32px = label的高度 + label的margin-bottom */
}

.delete-icon {
  background-color: #909399;
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.delete-icon.selected {
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background-color: #b90a0a;
}

:deep(.el-checkbox) {
  --el-checkbox-checked-bg-color: #fff;
  --el-checkbox-checked-input-border-color: #DCDFE6;
  --el-checkbox-checked-text-color: #606266;
}

:deep(.el-checkbox__inner) {
  border-radius: 5px;
  width: 20px;
  height: 20px;
  /* margin-top: 12px; */
}

:deep(.el-checkbox__inner::after) {
  display: none;
}

:deep(.el-checkbox__input.is-checked .el-checkbox__inner) {
  background-color: #fff;
  border-color: #DCDFE6;
}

:deep(.el-checkbox__input.is-checked .el-checkbox__inner::before) {
  content: '';
  position: absolute;
  top: 2px;
  left: 1.8px;
  width: 14px;
  height: 15px;
  border-radius: 5px;
  background-color: #b90a0a;
}

:deep(.el-checkbox__input.is-disabled .el-checkbox__inner) {
  background-color: #F5F7FA;
  border-color: #E4E7ED;
}

:deep(.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::before) {
  background-color: #C0C4CC;
}


/* 附件列表区域 */
.file-list {
  margin: 10px 0;
}

.file-item {
  display: flex;
  align-items: center;
  background-color: #f5f7fa;
  border-radius: 4px;
}

.file-item:hover {
  background-color: #ebeef5;
}
.meeting-upload {
  display: inline-block;
}

.el-upload__tip {
  color: #909399;
  font-size: 12px;
  margin-top: 4px;
}

.file-list-wrapper {
  margin-top: 10px;
}


.file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.file-name {
  color: blue;
}

.delete-icon {
  cursor: pointer;
  font-size: 16px;
  color: #ffffff;
  transition: color 0.3s;
}

.delete-icon:hover {
  background-color: #b90a0a;
}

.location-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.location-row .form-item {
  margin-bottom: 0;
}